<?php

declare(strict_types=1);

namespace App\Model\Users;



use App\Model\Model;

/**
 * @property int $id 
 * @property int $uid 用户 uid
 * @property string $account_name 账号名称
 * @property string $remark 账户备注
 * @property int $type 账户类型
 * @property int $is_default 是否默账册，1：否，2：是
 * @property int $amount 账户余额
 * @property int $in_amount 总收入金额
 * @property int $out_amount  总支出金额
 * @property int $is_del 是否删除，1：未删除，2：已删除
 * @property \Carbon\Carbon $created_at 录入时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class UsersAccount extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'users_account';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'account_name', 'type', 'is_default', 'amount', 'in_amount', 'out_amount', 'remark', 'is_del', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'type' => 'integer', 'is_default' => 'integer', 'amount' => 'integer', 'in_amount' => 'integer', 'out_amount' => 'integer', 'is_del' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
